(***********************************************************************

                    Mathematica-Compatible Notebook

This notebook can be used on any computer system with Mathematica 3.0,
MathReader 3.0, or any compatible application. The data for the notebook 
starts with the line of stars above.

To get the notebook into a Mathematica-compatible application, do one of 
the following:

* Save the data starting with the line of stars above into a file
  with a name ending in .nb, then open the file inside the application;

* Copy the data starting with the line of stars above to the
  clipboard, then use the Paste menu command inside the application.

Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode.  Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).

NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing the 
word CacheID, otherwise Mathematica-compatible applications may try to 
use invalid cache data.

For more information on notebooks and Mathematica-compatible 
applications, contact Wolfram Research:
  web: http://www.wolfram.com
  email: info@wolfram.com
  phone: +1-217-398-0700 (U.S.)

Notebook reader applications are available free of charge from 
Wolfram Research.
***********************************************************************)

(*CacheID: 232*)


(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[     49631,       2015]*)
(*NotebookOutlinePosition[     50588,       2047]*)
(*  CellTagsIndexPosition[     50544,       2043]*)
(*WindowFrame->Normal*)



Notebook[{

Cell[CellGroupData[{
Cell["Differential Equations", "Title",
  Evaluatable->False,
  TextAlignment->Center,
  TextJustification->0,
  AspectRatioFixed->True],

Cell["Assignment #8", "Title",
  Evaluatable->False,
  TextAlignment->Center,
  TextJustification->0,
  AspectRatioFixed->True],

Cell["Systems of Equations", "Title",
  TextAlignment->Center,
  TextJustification->0],

Cell[CellGroupData[{

Cell[TextData[StyleBox["Basic Theory of First Order Systems",
  FontSlant->"Italic"]], "Section",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[CellGroupData[{

Cell[TextData["Notation and Definitions for Systems"], "Subsection",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[
"A first order system of differential equations is written in the form"], 
  "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["dx",
    FontSlant->"Italic"],
  StyleBox["1",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["/dt ",
    FontSlant->"Italic"],
  "=",
  StyleBox[" F",
    FontSlant->"Italic"],
  StyleBox["1",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  "(",
  StyleBox["t,x",
    FontSlant->"Italic"],
  StyleBox["1",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox[",...,x",
    FontSlant->"Italic"],
  StyleBox["n",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  ")"
}], "Text",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData[{
  "\t\t\t\t\t ",
  StyleBox[" :",
    FontWeight->"Bold"],
  "                  ",
  StyleBox[":",
    FontWeight->"Bold"]
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["dx",
    FontSlant->"Italic"],
  StyleBox["n",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["/dt ",
    FontSlant->"Italic"],
  "=",
  StyleBox[" F",
    FontSlant->"Italic"],
  StyleBox["n",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  "(",
  StyleBox["t,x",
    FontSlant->"Italic"],
  StyleBox["1",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox[",...,x",
    FontSlant->"Italic"],
  StyleBox["n",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  ")"
}], "Text",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData[{
  "The independent variable is ",
  StyleBox["t ",
    FontSlant->"Italic"],
  "and the unknown functions are ",
  StyleBox["x",
    FontSlant->"Italic"],
  StyleBox["1",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  "(",
  StyleBox["t",
    FontSlant->"Italic"],
  ")",
  StyleBox[",...,x",
    FontSlant->"Italic"],
  StyleBox["n",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  "(",
  StyleBox["t",
    FontSlant->"Italic"],
  "). The functions ",
  StyleBox["F",
    FontSlant->"Italic"],
  StyleBox["1",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox[",...,F",
    FontSlant->"Italic"],
  StyleBox["n",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  " are assumed given. Many of the previous single equations can be written \
as a system of first order equations."
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[StyleBox["Example 4.1.1",
  FontWeight->"Bold",
  FontSlant->"Italic"]], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  "Show that the equation ",
  StyleBox["y'' + p",
    FontSlant->"Italic"],
  "(",
  StyleBox["t",
    FontSlant->"Italic"],
  ")",
  StyleBox["y' + q",
    FontSlant->"Italic"],
  "(",
  StyleBox["t",
    FontSlant->"Italic"],
  ")",
  StyleBox["y = r",
    FontSlant->"Italic"],
  "(",
  StyleBox["t",
    FontSlant->"Italic"],
  ")",
  StyleBox[" ",
    FontSlant->"Italic"],
  "can be written as a first order system."
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[StyleBox["Solution:",
  FontWeight->"Bold",
  FontSlant->"Italic"]], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  "Writing ",
  StyleBox["x",
    FontSlant->"Italic"],
  StyleBox["1",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  "(",
  StyleBox["t",
    FontSlant->"Italic"],
  ")",
  StyleBox[" = y",
    FontSlant->"Italic"],
  "(",
  StyleBox["t",
    FontSlant->"Italic"],
  ")",
  StyleBox[", x",
    FontSlant->"Italic"],
  StyleBox["2",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  "(",
  StyleBox["t",
    FontSlant->"Italic"],
  ")",
  StyleBox[" = y'",
    FontSlant->"Italic"],
  "(",
  StyleBox["t",
    FontSlant->"Italic"],
  ") we have the system"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["\t\t\t\tdx",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["1",
    FontFamily->"Times",
    FontSize->8,
    FontWeight->"Plain",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["/dt ",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["=",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox[" F",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["1",
    FontFamily->"Times",
    FontSize->8,
    FontWeight->"Plain",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox["t,x",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["1",
    FontFamily->"Times",
    FontSize->8,
    FontWeight->"Plain",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox[",x",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["2",
    FontFamily->"Times",
    FontSize->8,
    FontWeight->"Plain",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox[")",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox[" ",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["=",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox[" x",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["2",
    FontFamily->"Times",
    FontSize->8,
    FontWeight->"Plain",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox["t",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox["\n\t\t\t\tdx",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["2",
    FontFamily->"Times",
    FontSize->8,
    FontWeight->"Plain",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["/dt ",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["=",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox[" F",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["2",
    FontFamily->"Times",
    FontSize->8,
    FontWeight->"Plain",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox["t,x",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["1",
    FontFamily->"Times",
    FontSize->8,
    FontWeight->"Plain",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox[",x",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["2",
    FontFamily->"Times",
    FontSize->8,
    FontWeight->"Plain",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox[") =",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox[" -p",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox["t",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox["x",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["2",
    FontFamily->"Times",
    FontSize->8,
    FontWeight->"Plain",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox["t",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox[" - q",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox["t",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox["x",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["1",
    FontFamily->"Times",
    FontSize->8,
    FontWeight->"Plain",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox["t",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox[" + r",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times",
    FontWeight->"Plain"],
  StyleBox["t",
    FontFamily->"Times",
    FontWeight->"Plain",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times",
    FontWeight->"Plain"]
}], "Input",
  Evaluatable->False,
  AspectRatioFixed->True]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData[StyleBox["Notions from Linear Algebra and Matrix Theory",
  FontSlant->"Italic"]], "Section",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[CellGroupData[{

Cell[TextData["Vector and Matrix Notation"], "Subsection",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  "In ",
  StyleBox["Mathematica",
    FontSlant->"Italic"],
  " a vector is written as a list of elements and a matrix is a list of \
lists. For example, for"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["Clear[\"Global`@*\"]\nx = {3,7,-2}\ny = {p,q,r}"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["x",
    FontWeight->"Bold"],
  " and ",
  StyleBox["y",
    FontWeight->"Bold"],
  " are 3-dimensional vectors and"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["a = {{1,2,3},{5,9,-3},{4,4,3}}"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["a ",
    FontWeight->"Bold"],
  "is a 3",
  StyleBox["x",
    FontSize->10],
  "3 matrix. The operations of addition, scalar multiplication and matrix \
multiplication and the familiar inner or dot product are, respectively,"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["x+y"], "Input",
  AspectRatioFixed->True],

Cell[TextData["3y"], "Input",
  AspectRatioFixed->True],

Cell[TextData["a.y"], "Input",
  AspectRatioFixed->True],

Cell[TextData["x.y"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "The matrix ",
  StyleBox["a ",
    FontWeight->"Bold"],
  "can be displayed in the familiar rectangular array format with"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["MatrixForm[a]"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "and an arbitrary element, say the 2,3 element, of ",
  StyleBox["a ",
    FontWeight->"Bold"],
  "is denoted by"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["a[[2,3]]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["Forming systems of equations is simple,"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["a.y == x"], "Input",
  AspectRatioFixed->True],

Cell[TextData[
"but to develop this vector equality as a system, you must"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["ColumnForm[LogicalExpand[a.y == x]]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["Here are some matrix operations you will find handy."], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["MatrixForm[Transpose[a]]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["MatrixForm[RowReduce[a]]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["MatrixForm[Inverse[a]]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["Det[a]"], "Input",
  AspectRatioFixed->True]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData[StyleBox["Eigenvalues and Eigenvectors of Matrices",
  FontSlant->"Italic"]], "Section",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  "Find the characteristic polynomial for matrix ",
  StyleBox["a",
    FontWeight->"Bold"],
  " and then solve for the eigenvalues."
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[
"a = {{1,2,3},{5,9,-3},{4,4,3}};\np[lambda_] := Det[lambda IdentityMatrix[3] \
- a]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["Solve[p[lambda] == 0,lambda]"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "Or use the ",
  StyleBox["Mathematica",
    FontSlant->"Italic"],
  " built-in command"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["Eigenvalues[a]"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "Diagonalize matrix ",
  StyleBox["a",
    FontWeight->"Bold"],
  "."
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["u = Transpose[Eigenvectors[a]]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["MatrixForm[Inverse[u].a.u] // Simplify"], "Input",
  AspectRatioFixed->True],

Cell[TextData["Find the Jordan Decomposition.  "], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["{s,j} = JordanDecomposition[a]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["MatrixForm[s.j.Inverse[s]] // Simplify"], "Input",
  AspectRatioFixed->True],

Cell[TextData["MatrixForm[j]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["MatrixForm[MatrixExp[j]] // Simplify"], "Input",
  AspectRatioFixed->True],

Cell[TextData[
"See section 4.8 for additional information on diagonalizing matrices and the \
Jordan Decomposition."], "Text",
  Evaluatable->False,
  AspectRatioFixed->True]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData[StyleBox["Solution of Homogeneous Linear Systems ",
  FontSlant->"Italic"]], "Section",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[CellGroupData[{

Cell[TextData[
"Fundamental Sets of Solutions of the Homogeneous System"], "Subsection",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[
"Homogeneous systems of first order linear differential equations can be \
written"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["x",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["1",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["'",
    FontFamily->"Times",
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[") =",
    FontFamily->"Times"],
  StyleBox[" a",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["1,1",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox["x",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["1",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox[" + ... + a",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["1",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox[",n",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox["x",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["n",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  "\n ",
  StyleBox[":",
    FontWeight->"Bold"],
  "\n",
  StyleBox["x",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["n",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["'",
    FontFamily->"Times",
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox[" = a",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["n",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox[",1",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox["x",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["1",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox[" + ... + a",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["n,n",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox["x",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["n",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"]
}], "Print",
  Evaluatable->False,
  CellHorizontalScrolling->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData["or in matrix form,"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["X",
    FontFamily->"Times",
    FontWeight->"Bold",
    FontSlant->"Italic"],
  StyleBox["'",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[") =",
    FontFamily->"Times"],
  StyleBox[" ",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["A",
    FontFamily->"Times",
    FontWeight->"Bold",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox["X",
    FontFamily->"Times",
    FontWeight->"Bold",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"]
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData[
"The following theory reflects a general technique for solving systems like \
this. The motivation for this method is derived from the form of the solution \
of the scalar equation"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["x'",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[") =",
    FontFamily->"Times"],
  StyleBox[" ax",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox["  ->  x",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[") =",
    FontFamily->"Times"],
  StyleBox[" ce",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["a t",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}]
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{

Cell[TextData[StyleBox["Solution of Diagonalizable Systems",
  FontSlant->"Italic"]], "Section",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[StyleBox["Example",
  FontWeight->"Bold",
  FontSlant->"Italic"]], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["Let's consider the following system:"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["x'",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox[" ",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["=",
    FontFamily->"Times"],
  StyleBox[" -",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["3",
    FontFamily->"Times"],
  StyleBox["x",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox[" +",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[" 4",
    FontFamily->"Times"],
  StyleBox["y",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox["\ny'",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[") =",
    FontFamily->"Times"],
  StyleBox[" ",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["-2",
    FontFamily->"Times"],
  StyleBox["x",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox[" + ",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["3",
    FontFamily->"Times"],
  StyleBox["y",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"]
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData[StyleBox["Solution:",
  FontWeight->"Bold",
  FontSlant->"Italic"]], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  "Recall that",
  StyleBox[" Mathematica",
    FontSlant->"Italic"],
  " uses lists of lists to represent matrices, so the matrix (column vector ) \
representing the unknowns would be written as a row vector as"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["Clear[\"Global`@*\"]\nz = {x[t],y[t]}"], "Input",
  AspectRatioFixed->True],

Cell[TextData["The coefficient matrix becomes"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["a = {{-3,4},{-2,3}}"], "Input",
  AspectRatioFixed->True],

Cell[TextData["or in the familiar matrix form"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["MatrixForm[a]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["And finally, the left hand side becomes"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["z' = Dt[z,t]"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "To view the entire system, we use ",
  StyleBox["Mathematica",
    FontSlant->"Italic"],
  "'s matrix algebra intrinsics and execute"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["z' == a . z"], "Input",
  AspectRatioFixed->True],

Cell[TextData["or in system form"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["LogicalExpand[z' == a.z] // ColumnForm"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["Mathematica",
    FontSlant->"Italic"],
  " uses the \".\" for matrix multiplication. Even though the vectors \"",
  StyleBox["z",
    FontWeight->"Bold"],
  "\" and \"",
  StyleBox["z'",
    FontWeight->"Bold"],
  "\" are defined as row vectors, ",
  StyleBox["Mathematica",
    FontSlant->"Italic"],
  " converts them, when appropriate, into column vectors when they are used \
in multiplication operations.\n\nIf the first equation only contained \"",
  StyleBox["x's",
    FontSlant->"Italic"],
  "\" and the second only \"",
  StyleBox["y's",
    FontSlant->"Italic"],
  "\", then each equation could be directly integrated to produce the \
solution. This simple structure would be called a totally decoupled system. \
However, most problems do not begin in this form, so we ask if we can rewrite \
the problem into an equivalent one in which new variables, say \"",
  StyleBox["u",
    FontSlant->"Italic"],
  "\" and  \"",
  StyleBox["v",
    FontSlant->"Italic"],
  "\", permit a totally decoupled version of the original system. In \
mathematical terms, we wish to transform the old coordinate system (",
  StyleBox[" xy",
    FontSlant->"Italic"],
  "-space ) into a new coordinate system ( ",
  StyleBox["uv",
    FontSlant->"Italic"],
  "-space ) for which the system is totally decoupled. It is easy to see that \
this is equivalent to asking if there exists a new coordinate system for \
which the coefficient matrix ",
  StyleBox["A",
    FontSlant->"Italic"],
  " is a diagonal matrix. The theory of  eigenvalues and eigenvectors is \
ideally suited to answer general questions concerning the diagonalizability \
of a matrix.\n\nA matrix ",
  StyleBox["A",
    FontSlant->"Italic"],
  " is said to be diagonalizable if there exists an invertible matrix",
  StyleBox[" P",
    FontSlant->"Italic"],
  " such that "
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  " ",
  StyleBox["P",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["-",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox["1",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" A P = D",
    FontFamily->"Times",
    FontSlant->"Italic"],
  " ,"
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData[{
  "where ",
  StyleBox["D",
    FontSlant->"Italic"],
  " is a diagonal matrix. In general, a matrix is said to be semisimple if \
its complexification is diagonalizable. One of the important theorems \
concerning the general structure of square matrices is that there exists a \
coordinate system in which every square matrix ",
  StyleBox["A",
    FontSlant->"Italic"],
  " can be written "
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["S + N",
    FontFamily->"Times",
    FontSlant->"Italic"],
  ","
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData[{
  "where ",
  StyleBox["S",
    FontSlant->"Italic"],
  " is semisimple and ",
  StyleBox["N",
    FontSlant->"Italic"],
  " is nilpotent ( i.e., ",
  StyleBox["N",
    FontSlant->"Italic"],
  StyleBox["k",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" ",
    FontSlant->"Italic"],
  "= O for some k ).  A canonical form for this decomposition, called the \
Jordan canonical form, allows us to infer general conclusions concerning the \
stability of the dynamical system to which the matrix ",
  StyleBox["A",
    FontSlant->"Italic"],
  " is associated. Therefore, to begin our investigation of this example, we \
compute the eigenvalues of the matrix ",
  StyleBox["A",
    FontSlant->"Italic"],
  " by"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["vals = Eigenvalues[a]"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "Recall that distinct eigenvalues is sufficient for the existence of an \
invertible matrix, say ",
  StyleBox["p",
    FontSlant->"Italic"],
  ", whose columns are the eigenvectors of ",
  StyleBox["A",
    FontSlant->"Italic"],
  ". We may define the matrix ",
  StyleBox["p",
    FontSlant->"Italic"],
  " by"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["p = Transpose[Eigenvectors[a]]"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "To verify diagonalizability of  ",
  StyleBox["A",
    FontSlant->"Italic"],
  ", we compute"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["d = Inverse[p] . a . p"], "Input",
  AspectRatioFixed->True],

Cell[TextData["or in matrix form "], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["MatrixForm[d]"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "Version 2.0 contains a new function called ",
  StyleBox["JordanForm[m]",
    FontWeight->"Bold"],
  ", which will attempt to produce the matrices p and j associated with the \
matrix m. For example,"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["{p,j} = JordanDecomposition[a]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["Inverse[p].a.p == j == d"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "The matrix ",
  StyleBox["p",
    FontSlant->"Italic"],
  " is precisely the matrix which is used to define a new coordinate system \
for which the original system is decoupled and ",
  StyleBox["j",
    FontSlant->"Italic"],
  " is the ",
  StyleBox["S+N",
    FontSlant->"Italic"],
  " decomposition. For this problem,",
  StyleBox[" j ",
    FontSlant->"Italic"],
  "is a diagonal matrix, since the matrix a is diagonalizable. This is done \
by defining a mapping between the old coordinate system, say",
  StyleBox[" z",
    FontSlant->"Italic"],
  ", and the new one, say",
  StyleBox[" w",
    FontSlant->"Italic"],
  ", by "
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[StyleBox["z = p.w",
  FontFamily->"Times",
  FontSlant->"Italic"]], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData["or equivalently,"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  "  ",
  StyleBox["w = p",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["-1",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" . z",
    FontFamily->"Times",
    FontSlant->"Italic"]
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData["If we introduce"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["w = {u[t],v[t]}\nw' = Dt[w,t]"], "Input",
  AspectRatioFixed->True],

Cell[TextData[
"then the original system in the new coordinates becomes"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["w' == d . w // LogicalExpand // ColumnForm"], "Input",
  AspectRatioFixed->True],

Cell[TextData["Direct integration of each equation yields"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["u",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox[" ",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["=",
    FontFamily->"Times"],
  StyleBox[" e",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["-t",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" k",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["1",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}],
  StyleBox["\nv",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[") =",
    FontFamily->"Times"],
  StyleBox[" e",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["t",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" k",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["2",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Subscript"}]
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData["or in vector form,"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["{u[t],v[t]} = {{Exp[-t],0},{0,Exp[t]}}.{k[1],k[2]}"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "Now, using the coordinate transformation matrix ",
  StyleBox["p",
    FontSlant->"Italic"],
  ",  the ",
  StyleBox["xy",
    FontSlant->"Italic"],
  " solution can be written"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[
"z = (p.{{Exp[-t],0},{0,Exp[t]}}.Inverse[p]).{k[1],k[2]}"], "Input",
  AspectRatioFixed->True],

Cell[TextData["and a check verifies that it is correct."], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["Dt[z,t] == a.z // Simplify"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "Note that simple systems, like this one, can also be solved using ",
  StyleBox["DSolve",
    FontWeight->"Bold"],
  "."
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[
"Clear[t,x,y]\neq =  {x'[t]==-3x[t]+4y[t],y'[t]==-2x[t]+3y[t]};\nsol = \
DSolve[eq,{x[t],y[t]},t]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["eq /. sol // Simplify"], "Input",
  AspectRatioFixed->True],

Cell[TextData[
"At this point, it is natural to ask if one may extend the characteristics of \
the solution of the simple scalar equation"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["x'",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[") =",
    FontFamily->"Times"],
  StyleBox[" a x",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox["  ->  x",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[") =",
    FontFamily->"Times"],
  StyleBox[" c e",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["at",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}]
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData[
"to include systems of equations, like the one in this example. That is, can \
we develop a theory for which"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["X'",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[") =",
    FontFamily->"Times"],
  StyleBox[" A X",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox["  ->  X",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["(",
    FontFamily->"Times"],
  StyleBox["t",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox[")",
    FontFamily->"Times"],
  StyleBox[" ",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["=",
    FontFamily->"Times"],
  StyleBox[" C e",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["At",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}]
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData[{
  "where ",
  StyleBox["X",
    FontSlant->"Italic"],
  "(",
  StyleBox["t",
    FontSlant->"Italic"],
  "), ",
  StyleBox["X'",
    FontSlant->"Italic"],
  "(",
  StyleBox["t",
    FontSlant->"Italic"],
  ") and ",
  StyleBox["A",
    FontSlant->"Italic"],
  " are matrices of appropriate sizes. The first difficulty is to define what \
the exponential of a matrix means. We know that "
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["Series[Exp[x],{x,0,5}]"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "If ",
  StyleBox["A",
    FontSlant->"Italic"],
  " is a square matrix, then we may define ",
  StyleBox["A",
    FontSlant->"Italic"],
  StyleBox["2",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[", A",
    FontSlant->"Italic"],
  StyleBox["3",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Superscript"}],
  ", etc. and attempt to evaluate this series using powers of ",
  StyleBox["A",
    FontSlant->"Italic"],
  ", where",
  StyleBox[" A",
    FontSlant->"Italic"],
  StyleBox["0",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" ",
    FontSlant->"Italic"],
  "is taken to be the identity matrix, I. It can be shown that this series \
converges absolutely for any matrix, hence, we are justified in defining"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["e",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["A",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" = I + A + A",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["2",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox["/2",
    FontFamily->"Times"],
  StyleBox[" + A",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["3",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox["/6",
    FontFamily->"Times"],
  StyleBox[" + A",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["4",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox["/24",
    FontFamily->"Times"],
  StyleBox[" + ...",
    FontFamily->"Times",
    FontSlant->"Italic"]
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["Mathematica",
    FontSlant->"Italic"],
  " includes a function which calculates the exponential of any square \
matrix. For example, using the two coefficient matrices from our example, we \
obtain"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["expa = MatrixExp[a]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["expd = MatrixExp[d]"], "Input",
  AspectRatioFixed->True],

Cell[TextData["In addition, if "], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["p",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["-",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox["1",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" . a . p ",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["=",
    FontFamily->"Times"],
  StyleBox[" d",
    FontFamily->"Times",
    FontSlant->"Italic"]
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData["it follows that"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["p",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["i",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" . e",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["a",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" . p ",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["=",
    FontFamily->"Times"],
  StyleBox[" e",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["d",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}]
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData["To verify this, we compute"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["Inverse[p] . expa . p == expd // Simplify"], "Input",
  AspectRatioFixed->True],

Cell[TextData[{
  "which is precisely ",
  StyleBox["e",
    FontSlant->"Italic"],
  StyleBox["d",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  ". Putting all of these facts together, we may now write the solution of \
the original system as"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["MatrixExp[a t] . {c[1],c[2]}"], "Input",
  AspectRatioFixed->True],

Cell[TextData["which is equivalent to"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData["p . MatrixExp[d t] . Inverse[p] . {c[1],c[2]}"], "Input",
  AspectRatioFixed->True],

Cell[TextData[
"The virtues of having the original matrix in diagonal or semisimple form \
greatly simplifies the calculation of its exponential. When"], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["A = S + N ",
    FontFamily->"Times",
    FontSlant->"Italic"],
  ","
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData[{
  "where ",
  StyleBox["S",
    FontSlant->"Italic"],
  " is semisimple and ",
  StyleBox["N",
    FontSlant->"Italic"],
  " is nilpotent, then the exponential of ",
  StyleBox["A",
    FontSlant->"Italic"],
  " yields"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["e",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["A",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" = e",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["S",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[".e",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["N",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" ",
    FontFamily->"Times",
    FontSlant->"Italic"],
  ","
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData[{
  "but since ",
  StyleBox["N",
    FontSlant->"Italic"],
  StyleBox["n",
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" ",
    FontSlant->"Italic"],
  "= 0 for all integers ",
  StyleBox["n > k",
    FontSlant->"Italic"],
  ", we have"
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[{
  StyleBox["e",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["N",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox[" ",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["= ",
    FontFamily->"Times"],
  StyleBox["I + N + N",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["2",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox["/2",
    FontFamily->"Times"],
  StyleBox["! + N",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["3",
    FontFamily->"Times",
    FontSize->8,
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox["/3",
    FontFamily->"Times"],
  StyleBox["! + ... + N",
    FontFamily->"Times",
    FontSlant->"Italic"],
  StyleBox["k",
    FontFamily->"Times",
    FontSize->8,
    FontSlant->"Italic",
    FontVariations->{"CompatibilityType"->"Superscript"}],
  StyleBox["/k!,",
    FontFamily->"Times",
    FontSlant->"Italic"]
}], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True],

Cell[TextData[{
  "a polynomial in ",
  StyleBox["N",
    FontSlant->"Italic"],
  " and a straightforward computation ( no infinite series are involved ). \
The complete theory requires the determination of  independent subspaces on \
which ",
  StyleBox["A",
    FontSlant->"Italic"],
  " admits an\n ",
  StyleBox["S + N",
    FontSlant->"Italic"],
  " decomposition on each subspace. Then one solves each subspace problem as \
above and collects these solutions as components of the overall solution."
}], "Text",
  Evaluatable->False,
  AspectRatioFixed->True]
}, Closed]],

Cell[CellGroupData[{

Cell["Exercise", "Section",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[
"Solve the following initial value problem first using the techniques from \
linear algebra dissused in the above review and then using ODE."], "Text",
  Evaluatable->False,
  AspectRatioFixed->True],

Cell[TextData[
"x'(t) = 3x(t) + 2y(t) + 4z(t) ; x(0) = 2\ny'(t) = 2x(t)         + 2z(t) ; \
y(0) = 2\nz'(t) = 4x(t) + 2y(t) + 3z(t) ; z(0) = 6"], "Print",
  Evaluatable->False,
  TextAlignment->Center,
  AspectRatioFixed->True,
  FontFamily->"Courier",
  FontWeight->"Plain",
  FontSlant->"Italic",
  FontTracking->"Plain",
  FontVariations->{"Underline"->False,
  "Outline"->False,
  "Shadow"->False}]
}, Closed]]
}, Open  ]]
},
FrontEndVersion->"NeXT 3.0",
ScreenRectangle->{{0, 1053}, {0, 832}},
WindowToolbars->{"RulerBar", "EditBar"},
CellGrouping->Automatic,
WindowSize->{520, 600},
WindowMargins->{{Automatic, 206}, {Automatic, 16}},
PrivateNotebookOptions->{"ColorPalette"->{RGBColor, 128}},
ShowCellLabel->True,
ShowCellTags->False,
RenderingOptions->{"ObjectDithering"->True,
"RasterDithering"->False},
CharacterEncoding->"NeXTAutomaticEncoding",
StyleDefinitions -> "Classroom.nb"
]


(***********************************************************************
Cached data follows.  If you edit this Notebook file directly, not using
Mathematica, you must remove the line containing CacheID at the top of 
the file.  The cache data will then be recreated when you save this file 
from within Mathematica.
***********************************************************************)

(*CellTagsOutline
CellTagsIndex->{}
*)

(*CellTagsIndex
CellTagsIndex->{}
*)

(*NotebookFileOutline
Notebook[{

Cell[CellGroupData[{
Cell[1731, 51, 136, 4, 50, "Title"],
Cell[1870, 57, 127, 4, 50, "Title"],
Cell[2000, 63, 86, 2, 50, "Title"],

Cell[CellGroupData[{
Cell[2111, 69, 145, 3, 55, "Section"],

Cell[CellGroupData[{
Cell[2281, 76, 116, 2, 45, "Subsection"],
Cell[2400, 80, 147, 4, 26, "Text"],
Cell[2550, 86, 727, 30, 30, "Text"],
Cell[3280, 118, 198, 9, 26, "Text"],
Cell[3481, 129, 777, 32, 30, "Text"],
Cell[4261, 163, 1021, 39, 66, "Text"],
Cell[5285, 204, 142, 4, 26, "Text"],
Cell[5430, 210, 499, 25, 26, "Text"],
Cell[5932, 237, 138, 4, 26, "Text"],
Cell[6073, 243, 688, 34, 30, "Text"],
Cell[6764, 279, 5049, 207, 70, "Input"]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{
Cell[11862, 492, 155, 3, 35, "Section"],

Cell[CellGroupData[{
Cell[12042, 499, 106, 2, 45, "Subsection"],
Cell[12151, 503, 235, 8, 42, "Text"],
Cell[12389, 513, 100, 1, 68, "Input"],
Cell[12492, 516, 203, 9, 26, "Text"],
Cell[12698, 527, 83, 1, 44, "Input"],
Cell[12784, 530, 313, 10, 42, "Text"],
Cell[13100, 542, 56, 1, 44, "Input"],
Cell[13159, 545, 55, 1, 70, "Input"],
Cell[13217, 548, 56, 1, 70, "Input"],
Cell[13276, 551, 56, 1, 70, "Input"],
Cell[13335, 554, 201, 7, 70, "Text"],
Cell[13539, 563, 66, 1, 70, "Input"],
Cell[13608, 566, 191, 7, 70, "Text"],
Cell[13802, 575, 61, 1, 70, "Input"],
Cell[13866, 578, 113, 2, 70, "Text"],
Cell[13982, 582, 61, 1, 70, "Input"],
Cell[14046, 585, 132, 3, 70, "Text"],
Cell[14181, 590, 88, 1, 70, "Input"],
Cell[14272, 593, 126, 2, 70, "Text"],
Cell[14401, 597, 77, 1, 70, "Input"],
Cell[14481, 600, 77, 1, 70, "Input"],
Cell[14561, 603, 75, 1, 70, "Input"],
Cell[14639, 606, 59, 1, 70, "Input"]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{
Cell[14747, 613, 150, 3, 35, "Section"],
Cell[14900, 618, 209, 7, 26, "Text"],
Cell[15112, 627, 136, 3, 56, "Input"],
Cell[15251, 632, 81, 1, 44, "Input"],
Cell[15335, 635, 166, 7, 26, "Text"],
Cell[15504, 644, 67, 1, 44, "Input"],
Cell[15574, 647, 147, 7, 26, "Text"],
Cell[15724, 656, 83, 1, 44, "Input"],
Cell[15810, 659, 91, 1, 70, "Input"],
Cell[15904, 662, 106, 2, 70, "Text"],
Cell[16013, 666, 83, 1, 70, "Input"],
Cell[16099, 669, 91, 1, 70, "Input"],
Cell[16193, 672, 66, 1, 70, "Input"],
Cell[16262, 675, 89, 1, 70, "Input"],
Cell[16354, 678, 175, 4, 70, "Text"]
}, Closed]],

Cell[CellGroupData[{
Cell[16566, 687, 149, 3, 35, "Section"],

Cell[CellGroupData[{
Cell[16740, 694, 136, 3, 45, "Subsection"],
Cell[16879, 699, 156, 4, 26, "Text"],
Cell[17038, 705, 4182, 171, 64, "Print"],
Cell[21223, 878, 92, 2, 26, "Text"],
Cell[21318, 882, 962, 43, 22, "Print"],
Cell[22283, 927, 254, 5, 42, "Text"],
Cell[22540, 934, 980, 42, 70, "Print"]
}, Open  ]]
}, Closed]],

Cell[CellGroupData[{
Cell[23569, 982, 144, 3, 35, "Section"],
Cell[23716, 987, 136, 4, 26, "Text"],
Cell[23855, 993, 110, 2, 26, "Text"],
Cell[23968, 997, 1965, 89, 36, "Print"],
Cell[25936, 1088, 138, 4, 26, "Text"],
Cell[26077, 1094, 288, 8, 42, "Text"],
Cell[26368, 1104, 90, 1, 56, "Input"],
Cell[26461, 1107, 104, 2, 70, "Text"],
Cell[26568, 1111, 72, 1, 70, "Input"],
Cell[26643, 1114, 104, 2, 70, "Text"],
Cell[26750, 1118, 66, 1, 70, "Input"],
Cell[26819, 1121, 113, 2, 70, "Text"],
Cell[26935, 1125, 65, 1, 70, "Input"],
Cell[27003, 1128, 212, 7, 70, "Text"],
Cell[27218, 1137, 64, 1, 70, "Input"],
Cell[27285, 1140, 91, 2, 70, "Text"],
Cell[27379, 1144, 91, 1, 70, "Input"],
Cell[27473, 1147, 1917, 51, 70, "Text"],
Cell[29393, 1200, 515, 21, 70, "Print"],
Cell[29911, 1223, 468, 13, 70, "Text"],
Cell[30382, 1238, 178, 8, 70, "Print"],
Cell[30563, 1248, 849, 28, 70, "Text"],
Cell[31415, 1278, 74, 1, 70, "Input"],
Cell[31492, 1281, 390, 14, 70, "Text"],
Cell[31885, 1297, 83, 1, 70, "Input"],
Cell[31971, 1300, 172, 7, 70, "Text"],
Cell[32146, 1309, 75, 1, 70, "Input"],
Cell[32224, 1312, 92, 2, 70, "Text"],
Cell[32319, 1316, 66, 1, 70, "Input"],
Cell[32388, 1319, 279, 8, 70, "Text"],
Cell[32670, 1329, 83, 1, 70, "Input"],
Cell[32756, 1332, 77, 1, 70, "Input"],
Cell[32836, 1335, 710, 24, 70, "Text"],
Cell[33549, 1361, 163, 5, 70, "Print"],
Cell[33715, 1368, 90, 2, 70, "Text"],
Cell[33808, 1372, 367, 15, 70, "Print"],
Cell[34178, 1389, 89, 2, 70, "Text"],
Cell[34270, 1393, 82, 1, 70, "Input"],
Cell[34355, 1396, 130, 3, 70, "Text"],
Cell[34488, 1401, 95, 1, 70, "Input"],
Cell[34586, 1404, 116, 2, 70, "Text"],
Cell[34705, 1408, 1436, 59, 70, "Print"],
Cell[36144, 1469, 92, 2, 70, "Text"],
Cell[36239, 1473, 103, 1, 70, "Input"],
Cell[36345, 1476, 256, 10, 70, "Text"],
Cell[36604, 1488, 109, 2, 70, "Input"],
Cell[36716, 1492, 114, 2, 70, "Text"],
Cell[36833, 1496, 79, 1, 70, "Input"],
Cell[36915, 1499, 199, 7, 70, "Text"],
Cell[37117, 1508, 150, 3, 70, "Input"],
Cell[37270, 1513, 74, 1, 70, "Input"],
Cell[37347, 1516, 196, 4, 70, "Text"],
Cell[37546, 1522, 981, 42, 70, "Print"],
Cell[38530, 1566, 182, 4, 70, "Text"],
Cell[38715, 1572, 1088, 47, 70, "Print"],
Cell[39806, 1621, 463, 20, 46, "Text"],
Cell[40272, 1643, 75, 1, 24, "Input"],
Cell[40350, 1646, 890, 30, 70, "Text"],
Cell[41243, 1678, 1080, 42, 26, "Print"],
Cell[42326, 1722, 287, 8, 46, "Text"],
Cell[42616, 1732, 72, 1, 24, "Input"],
Cell[42691, 1735, 72, 1, 24, "Input"],
Cell[42766, 1738, 90, 2, 30, "Text"],
Cell[42859, 1742, 611, 24, 26, "Print"],
Cell[43473, 1768, 89, 2, 30, "Text"],
Cell[43565, 1772, 844, 33, 26, "Print"],
Cell[44412, 1807, 100, 2, 30, "Text"],
Cell[44515, 1811, 94, 1, 44, "Input"],
Cell[44612, 1814, 360, 12, 46, "Text"],
Cell[44975, 1828, 81, 1, 44, "Input"],
Cell[45059, 1831, 96, 2, 26, "Text"],
Cell[45158, 1835, 98, 1, 44, "Input"],
Cell[45259, 1838, 209, 4, 42, "Text"],
Cell[45471, 1844, 183, 8, 22, "Print"],
Cell[45657, 1854, 295, 13, 26, "Text"],
Cell[45955, 1869, 805, 32, 26, "Print"],
Cell[46763, 1903, 362, 15, 34, "Text"],
Cell[47128, 1920, 1174, 46, 26, "Print"],
Cell[48305, 1968, 564, 16, 86, "Text"]
}, Closed]],

Cell[CellGroupData[{
Cell[48906, 1989, 75, 2, 35, "Section"],
Cell[48984, 1993, 214, 4, 42, "Text"],
Cell[49201, 1999, 402, 12, 44, "Print"]
}, Closed]]
}, Open  ]]
}
]
*)




(***********************************************************************
End of Mathematica Notebook file.
***********************************************************************)

